<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>inweo.widgets.box test</title>
		<script src="../lib/mootools.js"></script>
		<script src="../inweo.js"></script>
		<script type="text/javascript">
			function main() {
				inweo.require("box");
				inweo.require("label");
				
				var page = new inweo.widgets.vbox(this);

				var label1 = new inweo.widgets.label();
				label1.text("I am a label");
				page.pack(label1);

				var label2 = new inweo.widgets.label();
				label2.text("I am a second label, right below label 1");
				page.pack(label2);
				
				var h = new inweo.widgets.hbox();
				h.space(10);
				page.pack(h);
				
				var label3 = new inweo.widgets.label();
				label3.text("I am first in horizontal row");
				h.pack(label3);

				var label4 = new inweo.widgets.label();
				label4.text("I am second in horizontal row");
				h.pack(label4);
			}
		</script>
	</head>
	<body>
	</body>
</html>